//
//  UIAlertView+Blocks.h
//
//  Created by Alexey Aleshkov on 17.09.12.
//  Copyright (c) 2012 DzeTech. All rights reserved.
//


#import <UIKit/UIKit.h>


typedef void(^UIAlertViewDismissBlock)(NSInteger buttonIndex);
typedef void(^UIAlertViewCancelBlock)(void);


@interface UIAlertView (Blocks)

+ (void)showWithTitle:(NSString *)title message:(NSString *)message cancelBlock:(UIAlertViewCancelBlock)cancelBlock dismissBlock:(UIAlertViewDismissBlock)dismissBlock cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION;

- (id)initWithTitle:(NSString *)title message:(NSString *)message cancelBlock:(UIAlertViewCancelBlock)cancelBlock dismissBlock:(UIAlertViewDismissBlock)dismissBlock cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION;

@end
